package com.jiyun.service.impl;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.mapper.OrderMapper;
//import com.jiyun.mapper.RiderQueueMapper;
import com.jiyun.pojo.DcDriver;
import com.jiyun.pojo.DcOrder;
import com.jiyun.pojo.Orders;
import com.jiyun.pojo.RiderQueue;
import com.jiyun.service.OrderService;
import com.jiyun.utils.Result;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 32593
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, DcOrder> implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
//    @Autowired
//    private RiderQueueMapper riderQueueMapper;

    @Override
    public List<DcOrder> getStatusFind(Integer status) {
        return baseMapper.getStatusFind(status);
    }

    @Override
    public Integer jiedanNum(Integer id) {
        return orderMapper.jiedanNum(id);
    }

    @Override
    public BigDecimal liushuimoney(Integer id) {
        return orderMapper.liushuimoney(id);
    }

    @Override
    public BigDecimal yunyingshichang(Integer id) {
        return orderMapper.yunyingshichang(id);
    }


}
